import request from "@/utils/request";

// 查询客户协助列表
export function listBizCustomerXiezu(query) {
  return request({
    url: "/biz/bizCustomerXiezu/list",
    method: "get",
    params: query,
  });
}
// 查询我协助
export function myXiezulist(query) {
  return request({
    url: "/biz/bizCustomerXiezu/myXiezulist",
    method: "get",
    params: query,
  });
}

// 查询客户协助详细
export function getBizCustomerXiezu(id) {
  return request({
    url: "/biz/bizCustomerXiezu/" + id,
    method: "get",
  });
}

// 新增客户协助
export function addBizCustomerXiezu(data) {
  return request({
    url: "/biz/bizCustomerXiezu",
    method: "post",
    data: data,
  });
}

// 修改客户协助
export function updateBizCustomerXiezu(data) {
  return request({
    url: "/biz/bizCustomerXiezu",
    method: "put",
    data: data,
  });
}

// 删除客户协助
export function delBizCustomerXiezu(id) {
  return request({
    url: "/biz/bizCustomerXiezu/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCustomerXiezu/findMaxSort",
    method: "get",
  });
}
// 导出客户协助
export function exportBizCustomerXiezu(query) {
  return request({
    url: "/biz/bizCustomerXiezu/export",
    method: "get",
    params: query,
  });
}

// 批量新增客户协助
export function multiAddBizCustomerXiezu(data) {
  return request({
    url: "/biz/bizCustomerXiezu/multiAdd",
    method: "post",
    data: data,
  });
}
